package com.ztorn.fiscale.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.annotation.Excel.ColumnType;
import com.ztorn.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 智能商品库对象 fiscale_product
 *
 * @author ztorn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("fiscale_product")
public class FiscaleProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    @TableId(type = IdType.AUTO)
    @Excel(name = "商品ID", cellType = ColumnType.NUMERIC)
    private Long productId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String productCode;

    /** 商品名称(中文) */
    @Excel(name = "商品名称(中文)")
    private String productNameCn;

    /** 商品名称(英文) */
    @Excel(name = "商品名称(英文)")
    private String productNameEn;

    /** HS编码 */
    @Excel(name = "HS编码")
    private String hsCode;

    /** 申报要素 */
    @Excel(name = "申报要素")
    private String declarationElements;

    /** 退税率 */
    @Excel(name = "退税率")
    private BigDecimal taxRebateRate;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 商品状态（0正常 1停用） */
    @Excel(name = "商品状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    @TableLogic
    private String isDeleted;
}
